package com.team.kaidb.act;

import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.text.InputType;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

import com.team.kaidb.BaseActivity;
import com.team.kaidb.R;
import com.team.kaidb.customview.LabelInputView;
import com.team.kaidb.utils.TextLabel;

import butterknife.InjectView;
import butterknife.OnClick;

/**
 * 修改密码
 */
public class ActivityModPass extends BaseActivity {

    @InjectView(R.id.input_pass_01)
    LabelInputView labelInputView01;
    @InjectView(R.id.input_pass_02)
    LabelInputView labelInputView02;
    @InjectView(R.id.input_pass_03)
    LabelInputView labelInputView03;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

//        labelInputView01.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
//        labelInputView02.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
//        labelInputView03.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
    }

    @Override
    public int getLayoutId() {
        return R.layout.act_mod_pass_lay;
    }

    @OnClick({R.id.button_cancel,R.id.button_ok})
    void button_click(View view){
        switch (view.getId()){
            case R.id.button_ok:
                TextLabel.getInstance().setSuccessText("修改密码成功!");
                startActivity(new Intent(context,ActivityCancelSuccess.class));
                this.finish();
                break;
            case R.id.button_cancel:
                finish();
                break;
            default:
                break;
        }
    }

}
